package com.dycs.service.impl;

import com.dycs.service.ReturnJsonCollection;
import com.dycs.utils.JsonCollection;
import com.dycs.utils.JsonKeyValueIterator;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ReturnJsonCollectionImpl implements ReturnJsonCollection {

    @Override
    public String getUnion(List<String> list) {
        return new JsonCollection().getUnion(list);
    }

    @Override
    public String getIntersection(List<String> list) {
        return new JsonCollection().getIntersection(list);
    }
}
